package de.rankyman.models;

import java.io.File;

public class EpisodeFile {
	
	private File file;
	private String origFileName;
	private String newFileName;
	
	public EpisodeFile(String origFile) {
		setFile(origFile);
		setOrigFileName(origFile);
	}
	
	public String getOrigFileName() {
		return origFileName;
	}
	public String getNewFileName() {
		return newFileName;
	}
	public void setFile(String file) {
		this.file = new File(file);
	}
	public void setOrigFileName(String origFileName) {
		this.origFileName = origFileName;
	}
	public void setNewFileName(String newFileName) {
		this.newFileName = newFileName;
	}
	
	public void rename() {
		file.renameTo(new File(newFileName));
	}
	
	@Override
	public String toString() {
		return "EpisodeFile [origFileName=" + origFileName + ", newFileName="
				+ newFileName + "]";
	}
}
